/*
- Malt Project - number.cpp
- This document is protected by the GPL protocol.
- Writer:@Index-Flandre
*/

#include "../../include/object/number.hpp"

namespace malt
{

Object *NewNumber()
{
	Number *num = new Number();
	num->tp = &NumberType;
	return num;
}

bool Number::eq(Object *obj)
{
	if (tp != obj->tp)
		return false;
	return val == ((Number *)obj)->val;
}
void Number::repl_print()
{
	printf("\e[33;1m%f\e[0m", val);
}
}
